package com.thauanLopes.bacterium.GameManages;

import java.util.List;

import Modes.HelmetBacteriaManager;
import Modes.NormalModeManager;
import Modes.ShieldBacteriaManager;

import com.game.ThauanFramework.GameObject;
import com.thauanLopes.bacterium.GameSceneView;

public class GameManagerFactory {

	public GameManager normalMode;
	public GameManager BowAndArrowMode;
	
	public static final int MODE_HELMET_BACTERIA = 3;
	public static final int MODE_SHIELD_BACTERIA = 2;
	public static final int MODE_NORMAL = 1;
	
	private List<GameObject> cemetery;
	private GameSceneView gameSceneView;
	
	public GameManagerFactory(List<GameObject> cemetery, GameSceneView mainView)
	{
		this.cemetery = cemetery;
		this.gameSceneView = mainView;
	}
	
	public GameManager Create(int type)
	{
		GameManager gameManager = null;
		switch(type)
		{
		case MODE_SHIELD_BACTERIA:
			gameManager = new ShieldBacteriaManager(cemetery, gameSceneView);
			break;
		case MODE_NORMAL:
			gameManager = new NormalModeManager(cemetery, gameSceneView);
			break;
		case MODE_HELMET_BACTERIA:
			gameManager = new HelmetBacteriaManager(cemetery, gameSceneView);
			break;
		}
		
		return gameManager;
	}
}
